package com.zh.business.config.mq;

import com.zh.zhbootcommon.domain.NotifyMsgSendVO;
import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * 描述: Mq消费者
 *
 * @author: yanglin
 * @Date: 2021-11-16-16:35
 * @Version: 1.0
 */
@Slf4j
@Component
public class NotifyMsgConsumer {

    @RabbitListener(queues = "zh-mq-queue")
    public void msgSend(NotifyMsgSendVO vo) {
        log.info("消费者收到消息:"+vo);
    }
}
